#ifndef NEAREST_INTERPOLATOR_H_
#define NEAREST_INTERPOLATOR_H_

#include "TiledInterpolator.h"

class NearestInterpolator : public TiledInterpolator {
  public:
    // Construct with edge modes.
    NearestInterpolator(EdgeMode horizontal_edge, EdgeMode vertical_edge);
    virtual ~NearestInterpolator();

    // Returns color of nearest pixel.
    virtual Color pixel(const ReadableImage& image, double x, double y) const;
};

#endif
